import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './assets/styles/global.css'

// 引入axios(接口API)
import axios from 'axios';
Vue.prototype.$http = axios;
Vue.prototype.$http.defaults.baseURL = 'http://localhost:8080';
Vue.prototype.$http.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';

// 引入qs(查询字符串解析和序列化的库)
import qs from 'qs';
Vue.prototype.$qs = qs;

// 关闭生产模式下给出的提示
Vue.config.productionTip = false

new Vue({
  router,
  render: function (h) { return h(App) }
}).$mount('#app')